import { A } from './a';
import { B } from './b';
import { Descriptor } from '../descriptor';
import { MainService } from '../main';

const service = new Map();
service.set(A.id, new Descriptor(A, ['a']));
service.set(B.id, new Descriptor(B));
const mainService = new MainService(service);

mainService.invoke((accessor) => {
    const a = accessor.get(A.id);
    const b = accessor.get(B.id);
    a.sync();
});
